package com.foreveross.chameleon.config;

import com.foreveross.bsl.test.R;

/**
 * @description 常量类
 * @author zhouzhineng
 * 
 */
public class ChameleonConstants {

	/**
	 * cube.properties id of R
	 */
	public static final int RAW_CONFIG = R.raw.cube;

	/**
	 * app magic signature
	 */
	public static final String APP_SIGN = "ChameleonEngine";

	/**
	 * base url of interface
	 */
	public static final String BASE_URL = "BASE_WS";

	/**
	 * app access enviroment
	 */
	public static final String PROJECT = "PROJECT";

	/**
	 * app identify
	 */
	public static final String APP_ID = "appKey";

	public static final String APP_SECRET = "secret";

	/**
	 * app access token
	 */
	public static final String APP_TOKEN = "app_token";

	/**
	 * token expire time
	 */
	public static final String APP_TOKEN_EXPIRE = "app_token_expire";

	public static final String PREFERENCES_NAME = "chameleon_preference";

	public static final String PAD_MAIN_URL = "PAD_MAIN_URL";

	public static final String PHONE_MAIN_URL = "PHONE_MAIN_URL";
	
	public static final String SYNC_REMIND_DLG_SHOW = "SYNC_REMIND_DLG_SHOW";
	
	public static final String NETWORK_CONNECTED_STATE = "network_connected_state";
	/**
	 * app first start
	 */
	public static final String APP_FIRST_START = "app_first_start";

	public static final String MODULE_CONFIG_FILE = "chameleon_module_config";

	public static final String APPINFO_CONFIG_FILE = "chameleon_appinfo_config";

	/**
	 * app boardcast actions follows
	 */

	// app status
	public static final String ACTION_APP_START = ChameleonConfig.APP_PACKAGENAME
			+ ".app_start";

	public static final String ACTION_APP_EXIT = ChameleonConfig.APP_PACKAGENAME
			+ ".app_exit";

	public static final String ACTION_APP_REFRESH = ChameleonConfig.APP_PACKAGENAME
			+ ".app_refresh";

	// init actions
	public static final String ACTION_APP_INIT_START = ChameleonConfig.APP_PACKAGENAME
			+ ".app_init_start";

	public static final String ACTION_APP_INIT_FINISH = ChameleonConfig.APP_PACKAGENAME
			+ ".app_init_finished";

	public static final String ACTION_APP_INIT_SUCC = ChameleonConfig.APP_PACKAGENAME
			+ ".app_init_succ";

	public static final String ACTION_APP_INIT_FAIL = ChameleonConfig.APP_PACKAGENAME
			+ ".app_init_fail";

	// auth actions
	public static final String ACTION_APP_AUTH_START = ChameleonConfig.APP_PACKAGENAME
			+ ".app_auth_start";

	public static final String ACTION_APP_AUTH_FINISH = ChameleonConfig.APP_PACKAGENAME
			+ ".app_auth_finish";

	public static final String ACTION_APP_AUTH_SUCC = ChameleonConfig.APP_PACKAGENAME
			+ ".app_auth_succ";

	public static final String ACTION_APP_AUTH_FAIL = ChameleonConfig.APP_PACKAGENAME
			+ ".app_auth_fail";

	// app sync actions
	public static final String ACTION_APP_SYNC_START = ChameleonConfig.APP_PACKAGENAME
			+ ".app_sync_start";

	public static final String ACTION_APP_SYNC_FINISH = ChameleonConfig.APP_PACKAGENAME
			+ ".app_sync_finish";

	public static final String ACTION_APP_SYNC_SUCC = ChameleonConfig.APP_PACKAGENAME
			+ ".app_sync_succ";

	public static final String ACTION_APP_SYNC_FAIL = ChameleonConfig.APP_PACKAGENAME
			+ ".app_sync_fail";

	// app download actions

	public static final String ACTION_APP_UPDATE = ChameleonConfig.APP_PACKAGENAME
			+ ".app_update";

	public static final String ACTION_APP_DOWNLOAD_START = ChameleonConfig.APP_PACKAGENAME
			+ ".app_download_start";

	public static final String ACTION_APP_DOWNLOAD_FINISH = ChameleonConfig.APP_PACKAGENAME
			+ ".app_download_finish";

	public static final String ACTION_APP_DOWNLOAD_CANCEL = ChameleonConfig.APP_PACKAGENAME
			+ ".app_download_cancel";
	
	public static final String ACTION_APP_DOWNLOAD_ERROR = ChameleonConfig.APP_PACKAGENAME
			+ ".app_download_error";

	public static final String ACTION_APP_DOWNLOAD_PROGRESS_UPDATE = ChameleonConfig.APP_PACKAGENAME
			+ ".app_download_progress_update";

	// module download actions
	public static final String ACTION_MODULE_DOWNLOAD_START = ChameleonConfig.APP_PACKAGENAME
			+ ".module_download_start";

	public static final String ACTION_MODULE_DOWNLOAD_FINISH = ChameleonConfig.APP_PACKAGENAME
			+ ".module_download_finish";

	public static final String ACTION_MODULE_DOWNLOAD_CANCEL = ChameleonConfig.APP_PACKAGENAME
			+ ".module_download_cancel";
	
	public static final String ACTION_MODULE_INSTALL = ChameleonConfig.APP_PACKAGENAME
			+ ".module_install";
	
	public static final String ACTION_MODULE_UNINSTALL = ChameleonConfig.APP_PACKAGENAME
			+ ".module_uninstall";
	
	public static final String ACTION_MODULE_UPGRADE = ChameleonConfig.APP_PACKAGENAME
			+ ".module_upgrade";
	
	public static final String ACTION_MODULE_DOWNLOAD_ERROR = ChameleonConfig.APP_PACKAGENAME
			+ ".module_download_error";

	public static final String ACTION_MODULE_DOWNLOAD_PROGRESS_UPDATE = ChameleonConfig.APP_PACKAGENAME
			+ ".download_module_progress_update";

	public static final String ACTION_DOWNLOAD_COUNT_UPDATE = ChameleonConfig.APP_PACKAGENAME
			+ ".download_count_update";
	
	public static final String TOTAL_DOWNLOAD_COUNT =  "total_download_count";

	public static final String DOWNLOADED_COUNT = "downloaded_count";
	
	public static final String MODULE_INSTALL_STATE = "module_install_state";
	
	public static final String MODULE_UNINSTALL_STATE = "module_uninstall_state";
	
	public static final String MODULE_UPGRADE_STATE = "module_upgrade_state";
	
	public static final String NETWORK_STATE = "network_state";
	
}
